Optimal. Leaf size=171 \[ -\frac {256 c^4 \tan (e+f x) (a \sec (e+f x)+a)^2}{1155 f \sqrt {c-c \sec (e+f x)}}-\frac {64 c^3 \tan (e+f x) (a \sec (e+f x)+a)^2 \sqrt {c-c \sec (e+f x)}}{231 f}-\frac {8 c^2 \tan (e+f x) (a \sec (e+f x)+a)^2 (c-c \sec (e+f x))^{3/2}}{33 f}-\frac {2 c \tan (e+f x) (a \sec (e+f x)+a)^2 (c-c \sec (e+f x))^{5/2}}{11 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.45, antiderivative size = 171, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 2, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {3955, 3953} \[ -\frac {256 c^4 \tan (e+f x) (a \sec (e+f x)+a)^2}{1155 f \sqrt {c-c \sec (e+f x)}}-\frac {64 c^3 \tan (e+f x) (a \sec (e+f x)+a)^2 \sqrt {c-c \sec (e+f x)}}{231 f}-\frac {8 c^2 \tan (e+f x) (a \sec (e+f x)+a)^2 (c-c \sec (e+f x))^{3/2}}{33 f}-\frac {2 c \tan (e+f x) (a \sec (e+f x)+a)^2 (c-c \sec (e+f x))^{5/2}}{11 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3953
Rule 3955
Rubi steps
\begin {align*} \int \sec (e+f x) (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{7/2} \, dx &=-\frac {2 c (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{5/2} \tan (e+f x)}{11 f}+\frac {1}{11} (12 c) \int \sec (e+f x) (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{5/2} \, dx\\ &=-\frac {8 c^2 (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{33 f}-\frac {2 c (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{5/2} \tan (e+f x)}{11 f}+\frac {1}{33} \left (32 c^2\right ) \int \sec (e+f x) (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{3/2} \, dx\\ &=-\frac {64 c^3 (a+a \sec (e+f x))^2 \sqrt {c-c \sec (e+f x)} \tan (e+f x)}{231 f}-\frac {8 c^2 (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{33 f}-\frac {2 c (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{5/2} \tan (e+f x)}{11 f}+\frac {1}{231} \left (128 c^3\right ) \int \sec (e+f x) (a+a \sec (e+f x))^2 \sqrt {c-c \sec (e+f x)} \, dx\\ &=-\frac {256 c^4 (a+a \sec (e+f x))^2 \tan (e+f x)}{1155 f \sqrt {c-c \sec (e+f x)}}-\frac {64 c^3 (a+a \sec (e+f x))^2 \sqrt {c-c \sec (e+f x)} \tan (e+f x)}{231 f}-\frac {8 c^2 (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{33 f}-\frac {2 c (a+a \sec (e+f x))^2 (c-c \sec (e+f x))^{5/2} \tan (e+f x)}{11 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.64, size = 88, normalized size = 0.51 \[ \frac {2 a^2 c^3 \cos ^4\left (\frac {1}{2} (e+f x)\right ) (3419 \cos (e+f x)-1510 \cos (2 (e+f x))+533 \cos (3 (e+f x))-1930) \cot \left (\frac {1}{2} (e+f x)\right ) \sec ^5(e+f x) \sqrt {c-c \sec (e+f x)}}{1155 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.45, size = 147, normalized size = 0.86 \[ \frac {2 \, {\left (533 \, a^{2} c^{3} \cos \left (f x + e\right )^{6} + 844 \, a^{2} c^{3} \cos \left (f x + e\right )^{5} - 211 \, a^{2} c^{3} \cos \left (f x + e\right )^{4} - 472 \, a^{2} c^{3} \cos \left (f x + e\right )^{3} + 295 \, a^{2} c^{3} \cos \left (f x + e\right )^{2} + 140 \, a^{2} c^{3} \cos \left (f x + e\right ) - 105 \, a^{2} c^{3}\right )} \sqrt {\frac {c \cos \left (f x + e\right ) - c}{\cos \left (f x + e\right )}}}{1155 \, f \cos \left (f x + e\right )^{5} \sin \left (f x + e\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 4.14, size = 113, normalized size = 0.66 \[ -\frac {64 \, \sqrt {2} {\left (231 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )}^{3} c^{3} + 495 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )}^{2} c^{4} + 385 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )} c^{5} + 105 \, c^{6}\right )} a^{2} c^{3}}{1155 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )}^{\frac {11}{2}} f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.65, size = 85, normalized size = 0.50 \[ -\frac {2 a^{2} \left (\frac {c \left (-1+\cos \left (f x +e \right )\right )}{\cos \left (f x +e \right )}\right )^{\frac {7}{2}} \left (\sin ^{5}\left (f x +e \right )\right ) \left (533 \left (\cos ^{3}\left (f x +e \right )\right )-755 \left (\cos ^{2}\left (f x +e \right )\right )+455 \cos \left (f x +e \right )-105\right )}{1155 f \left (-1+\cos \left (f x +e \right )\right )^{6} \cos \left (f x +e \right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 14.40, size = 606, normalized size = 3.54 \[ \frac {\left (\frac {a^2\,c^3\,2{}\mathrm {i}}{f}+\frac {a^2\,c^3\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1066{}\mathrm {i}}{1155\,f}\right )\,\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}}{{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1}+\frac {\left (\frac {a^2\,c^3\,64{}\mathrm {i}}{11\,f}-\frac {a^2\,c^3\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,64{}\mathrm {i}}{11\,f}\right )\,\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )}^5}-\frac {\left (\frac {a^2\,c^3\,32{}\mathrm {i}}{3\,f}-\frac {a^2\,c^3\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,608{}\mathrm {i}}{33\,f}\right )\,\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )}^4}-\frac {\left (\frac {a^2\,c^3\,4{}\mathrm {i}}{f}+\frac {a^2\,c^3\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,2932{}\mathrm {i}}{1155\,f}\right )\,\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )}+\frac {\left (\frac {a^2\,c^3\,16{}\mathrm {i}}{5\,f}+\frac {a^2\,c^3\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,4272{}\mathrm {i}}{385\,f}\right )\,\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )}^2}+\frac {\left (\frac {a^2\,c^3\,32{}\mathrm {i}}{7\,f}-\frac {a^2\,c^3\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,4640{}\mathrm {i}}{231\,f}\right )\,\sqrt {c-\frac {c}{\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}}{2}}}}{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-1\right )\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+1\right )}^3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________